package com.myself.service;

import com.myself.api.CarInterface;

/**
 * @author W.S.
 * @version v1.0.0
 * @description
 * @date Created in 2019/3/21 11:14
 */
public class RedCarWapper implements CarInterface{
    CarInterface carInterface;

    public RedCarWapper(CarInterface carInterface) {
        this.carInterface = carInterface;
    }

    public void sayColor() {
        System.out.println("RedCarWapper_before");
        carInterface.sayColor();
        System.out.println("RedCarWapper_after");
    }

    public void sayBrand() {

    }
}
